/*
 * @Descripttion: your project
 * @version: 1.0
 * @Author: hongweixun
 * @Date: 2022-07-07 08:24:12
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2025-03-28 16:07:51
 */
import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    redirect: '/homeView',
    component: () => import(/* webpackChunkName: "home" */ '../views/Home.vue')
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import(/* webpackChunkName: "home" */ '../views/Home.vue'),
    redirect: '/homeView',
    children: [
      {
        path: '/homeView',
        name: 'HomeView',
        component: () => import(/* webpackChunkName: "home_view" */ '../components/HomeView.vue')
      },
      {
        path: '/dormitAttend',
        name: 'DormitAttend',
        component: () => import(/* webpackChunkName: "home_view" */ '../components/DormitAttend.vue')
      },
      {
        path: '/dormitRate',
        name: 'DormitRate',
        component: () => import(/* webpackChunkName: "home_view" */ '../components/DormitRate.vue')
      },
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
